Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use MessageData.tagged to mark maxHeartbeat exceptions #5566

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

eric-wieser
Copy link
Contributor

@eric-wieser eric-wieser commented Oct 1, 2024

Fixes #5565, by using tags instead of trying to string match on a MessageData. This ends up reverting some unwanted test output changes from #4781 too.

This changes isMaxRecDepth for good measure too.

This was a regression in Lean 4.11.0, so may be worth backporting to 4.12.x, if not also 4.11.x.

@eric-wieser eric-wieser marked this pull request as ready for review October 1, 2024 15:19
@eric-wieser

This comment was marked as resolved.

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 1, 2024
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Oct 1, 2024

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase d4195c2605e92d583bfec8c829d845c9703800dc --onto 5e8718dff9d7906e1d4ca7020256dae7c05e49c2. (2024-10-01 15:41:22)
  • ✅ Mathlib branch lean-pr-testing-5566 has successfully built against this PR. (2024-10-01 17:00:49) View Log

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Oct 1, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Oct 1, 2024
@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Oct 1, 2024
Copy link
Collaborator

@kmill kmill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kim-em This PR fixes something I broke in #4781; I didn't realize that isMaxHeartbeat checked for the exact text of the error message, and it's an important part of the exception handling architecture. We probably should backport this to 4.12. At least the system normally avoids bumping into heartbeat errors, so it's not the highest of priorities, but users running into heartbeat errors might see confusing states.

@kmill kmill added this pull request to the merge queue Oct 9, 2024
Merged via the queue into leanprover:master with commit b814be6 Oct 9, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception.isMaxHeartbeat no longer works
3 participants